#ifndef COMMANDE_TOURNER_H
#define COMMANDE_TOURNER_H
#include "CommandesRobot.h"
class CommandesRobot;
class CommandeTourner : public CommandesRobot{
	protected:
		string _ancienneDirection;
	public:
		static CommandeTourner _instance;
		CommandeTourner(Robot *r=NULL, string name="TOURNER"):CommandesRobot(r,name){
			if (r!=NULL)
				_ancienneDirection =r->getDirection();
		}
		CommandeTourner(string name):CommandesRobot(name){}
		CommandeTourner* constructeurVirtuel(Robot * r){
			return new CommandeTourner(r);
		}
		void execute();
		void desexecute();
		bool reversible();
};
#endif
